package com.example.pwj.ffstudy.ui.zhihu.contract;

import com.example.pwj.ffstudy.base.BasePresenter;
import com.example.pwj.ffstudy.base.BaseView;
import com.example.pwj.ffstudy.bean.zdaily.ZDailyExtra;
import com.example.pwj.ffstudy.bean.zdaily.ZDailyStoryDetail;

import io.reactivex.Observable;

/**
 * Created by pwj on 2017/8/25.
 */

public interface ZNewsDetailContract {
    interface Model {
        Observable<ZDailyStoryDetail> getZDailyStoryDetail(int id);

        Observable<ZDailyExtra> getZDailyExtra(int id);
    }

    interface View extends BaseView {
        void onLoadZDailyDetail(ZDailyStoryDetail zDailyStoryDetail);

        void onLoadZDailyExtra(ZDailyExtra zDailyExtra);

        void onError();

        void onComplete();
    }

    interface Presenter extends BasePresenter<View> {
        void loadZDailyStoryDetail(int id);

        void loadZDailyExtra(int id);
    }
}
